FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["WebAppGateway.Host/WebAppGateway.Host.csproj", "WebAppGateway.Host/"]
RUN dotnet restore "WebAppGateway.Host/WebAppGateway.Host.csproj"
COPY . .
RUN dotnet publish -c Release -o publish

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
COPY --from=build /src/publish ./
ENTRYPOINT ["dotnet", "WebAppGateway.Host.dll"]